<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
<title><?php echo C('WEB_SITE_TITLE');?></title>
<meta name="description" content="4everyone">
    <meta name="keywords" content="4everyone">
    <meta name="author" content="4everyone">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>	
   
    <link rel="stylesheet" href="/fy/Public/Home/css/bootstrap.css">
    <link rel="stylesheet" href="/fy/Public/Home/css/bootstrap-responsive.css">
    <link rel="stylesheet" href="/fy/Public/Home/css/style.css">
    <link rel="stylesheet" href="/fy/Public/Home/css/style.css">
    <link rel="stylesheet" href="/fy/Public/Home/css/mobilemenu.css">
	<link rel="icon" href="/fy/Public/Home/imagesFY.ico" type="image/x-icon">
	<link rel="shortcut icon" href="/fy/Public/Home/images/FY.ico" type="image/x-icon" />
	<script type="text/javascript" src="/fy/Public/Home/js/jquery-latest.js"></script>
    <script type="text/javascript" src="/fy/Public/Home/js/bootstrap.js"></script>
    <script type="text/javascript" src="/fy/Public/Home/js/jquery.session.js"></script>
    <script type="text/javascript" src="/fy/Public/Home/js/parallax.js"></script>
    <script type="text/javascript" src="/fy/Public/Home/js/jquery.flexslider.js"></script>
    <script type="text/javascript" src="/fy/Public/Home/js/message-form.js"></script>
    <script type="text/javascript" src="/fy/Public/Home/js/script.js"></script>
	<script type="text/javascript" src="/fy/Public/Home/js/test.js"></script>
	<script>
    function openme(a,b){
			document.getElementById(a).style.display='block';
			document.getElementById(b).style.display='block';
			}
			function closeme(a,b){
			document.getElementById(a).style.display='none';
			document.getElementById(b).style.display='none';
			}
			

    </script>
	<!--[if lt IE 8]>
<div style=' clear: both; text-align:center; position: relative;'>
 <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
   <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
</a>
</div>
<![endif]-->
<!--[if lt IE 9]>
    <script type="text/javascript" src="/fy/Public/Home/js/html5.js"></script>
    <link rel="stylesheet" type="text/css" media="screen" href="/fy/Public/Home/css/ie.css">
<![endif]-->
<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->

      <div id="div1"></div>
            <div id="div2">
        <div class="logo">
        	<div class="top">
        <font >登陆</font>
        <input type="button" value="x" onClick="closeme('div1','div2')" style="cursor: hand; width:50px; height:50px; overflow:hidden;background:url(images/nav.png)  left 50px no-repeat; border:none; color:#FFF; font-size:24px; display:block; float:right">
        </div>
        <div class="main">
        <form name="myform"  action="<?php echo U('Home/Index/login');?>" method="post">
        
        <span>用户名:</span><input type="text" class="text" name="username" >
        <span>密码:</span><input type="password" class="text" name="password">
        <a href="#">忘记密码</a>
        <input type="submit"  class="button" name="logoin" value="登陆" >
        <input type="reset" class="button sc" name="exit" value="取消" >
        
        </form>
        </div>
        </div>
        </div> 


</head>
<body>
	
	<!-- 导航条
================================================== -->
<header class="">
			<div class="container">
            	<div class="row">
                    <div class="span12">
                        <a class="logo" href="<?php echo U('Index/index#home');?>"></a>
                        <button class="nav-button">menu</button>
                        <ul class="menu">
                            <li><a  href="<?php echo U('Index/index#home');?>" >首页  </a>|</li>
                            <li><a  href="<?php echo U('News/index');?>">  公司动态  </a>|</li>
                            <li><a  href="<?php echo U('Business/index');?>" > 叫车 </a>|</li>
                            <li><a  href="<?php echo U('Help/index');?>">  常见问题 </a>|</li>
                            <li><a  href="<?php echo U('About/index');?>" >  关于我们 </a>|</li>
                            <li><a  href="<?php echo U('Index/index#cooperate');?>" >  商务合作</a></li>
                        </ul>
                       
                       <?php if(is_login()): ?><div id="logo2" >
    	<a class="in" href="javascript:void(0);"onclick="window.location='<?php echo U('User/select');?>'"><?php echo ($userInfo['nickname']); ?></a>
        <a class="out" href="<?php echo U('User/logout');?>">退出</a>
    </div>
                               
                      
                <?php else: ?>
				<div class="font" id="logo1">
				<a  href="javascript:void(0);"onClick="openme('div1','div2')">登陆</a>
				<a href="<?php echo U('User/register');?>">注册</a>
				</div><?php endif; ?>
                    </div>
                </div>
			</div><!--/container-->
		</header>
               
            
                
            
  
	<!-- 主体 -->
	

        

 <div class="center">
        	<div class="box">
           	  <div class="title">用户注册</div>
             	<div id="enroll"><!--/fy/index.php/home/user/register.html-->
        <form class="login-form" action="#" method="post" ">
		<ul>
          <li><div class="control-group">
            <span class="control-label" for="inputName">用户名</span>
            <div class="controls">
              <input type="text" id="inputName" onblur="check_len(this)" class="span3" placeholder="请输入用户名"  ajaxurl="/member/checkUserNameUnique.html" errormsg="请填写1-16位用户名" nullmsg="请填写用户名" datatype="*1-16" value="" name="username">
            </div>
			<font id="show_name"></font>
          </div></li>
		  <li>
          <div class="control-group">
            <span class="control-label" for="inputPassword">密码</span>
            <div class="controls">
              <input type="password" id="inputPassword"  onblur="pw_len(this)" class="span3" placeholder="请输入密码"  errormsg="密码为6-20位" nullmsg="请填写密码" datatype="*6-20" name="password">
            </div>
			<font id="show_pw"></font>
          </div></li>
		  <li>
          <div class="control-group">
            <span class="control-label" for="inputPassword">确认密码</span>
            <div class="controls">
              <input type="password" id="inputPassword2" onblur="pw2_len(this)" class="span3" placeholder="请再次输入密码" recheck="password" errormsg="您两次输入的密码不一致" nullmsg="请填确认密码" datatype="*" name="repassword">
            </div>
			<font id="show_pw2"></font>
          </div>
		  </li>
		  <li>
          <div class="control-group">
            <span class="control-label" for="inputEmail">手机号码</span>
            <div class="controls">
              
			  <input type="text" id="inputMobile" onblur="shouji_len(this)" placeholder="请输入手机号码"   datatype="m" value="" name="mobile">
            
			</div>
			
			<a href="#" >获取验证码</a>
			
          </div></li>
		  <li>
          <div class="control-group">
            <span  for="inputVerify">验证码</span>
            <div class="controls">
              <input type="text" id="verify"  placeholder="请输入验证码"  errormsg="请填写5位验证码" nullmsg="请填写验证码" datatype="*5-5" name="verify">
            </div>
			<font id="show_sj"></font>
          </div>
		 
		  </li>
		   <li><span></span><font class=" Validform_checktip "></font></li>
		  <!--<li>
          
            <span class="control-label"></span>
            <div >
                <img class="verifyimg reloadverify" alt="点击切换" src="<?php echo U('verify');?>" style="cursor:pointer;">
            </span>
            <div class=" Validform_checktip "></div>
          </div>
		  </li>-->
		  </ul>
          </div>
              <button type="submit" class="submit">注 册</button>
			
          
        </form>
	</div>




	
	<!-- /主体 -->

	<!-- 底部 -->
	<bottom> Copyright © 2014 凡宇快的版权所有  粤CP备13002405号-1   企业叫车
<br>本网站经XXX授权许可</bottom>
    <!-- 底部
    ================================================== -->
   

<script type="text/javascript">
(function(){
	var ThinkPHP = window.Think = {
		"ROOT"   : "/fy", //当前网站地址
		"APP"    : "/fy/index.php", //当前项目地址
		"PUBLIC" : "/fy/Public", //项目公共目录地址
		"DEEP"   : "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
		"MODEL"  : ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
		"VAR"    : ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"]
	}
})();
</script>

<script type="text/javascript" src="/fy/Public/static/jquery-2.0.3.min.js"></script>
<script>


function check_len(thisObj){
   
    if (thisObj.value.length<2 || thisObj.value.length>16)
     {
         document.getElementById('show_name').innerHTML="<img src='/fy/Public/Home/images/en_1.jpg'/> 用户名长度必须在4-16个字符以内！";
        return false;
    }
         document.getElementById('show_name').innerHTML="<img src='/fy/Public/Home/images/dui.png'/>";    
         return true;
       }
	   function pw_len(thisObj){
   
    if (thisObj.value.length<6 || thisObj.value.length>30)
     {
         document.getElementById('show_pw').innerHTML="<img src='/fy/Public/Home/images/en_1.jpg'/> 密码长度必须在6-30个字符以内！";
        return false;
    }
         document.getElementById('show_pw').innerHTML="<img src='/fy/Public/Home/images/dui.png'/>";    
         return true;
       }
 function pw2_len(thisObj){
   $a = document.getElementById('inputPassword').value;
   if($a!==''){
    if (thisObj.value!=$a)
     {
         document.getElementById('show_pw2').innerHTML="<img src='/fy/Public/Home/images/en_1.jpg'/> 密码和确认密码不一致！";
        return false;
    }
         document.getElementById('show_pw2').innerHTML="<img src='/fy/Public/Home/images/dui.png'/>";    
         return true;
       }
	   }
 
  function shouji_len(thisObj){
    var reg=/^1[3|5|7|8|9][0-9]\d{8}$/;    
     var rzt=thisObj.value.match(reg);
     
     if (rzt==null)
     {
         document.getElementById('show_sj').innerHTML="<img src='/fy/Public/Home/images/en_1.jpg'/> 请输入正确的手机号码！";
        return false;
     }else{
         document.getElementById('show_sj').innerHTML="<img src='/fy/Public/Home/images/dui.png'/>";
        return true;
    }

  }
    function dizhi_len(thisObj){
  
     if(thisObj.value.length==0){
        document.getElementById('show_dz').innerHTML="地址不能为空";
         return false;
         }else{
    
         document.getElementById('show_dz').innerHTML="";
        return true;
    }

  }
   function dizhi_xx(){
  
   
        document.getElementById('address').innerHTML="";
        

  }

    	$(document)
	    	.ajaxStart(function(){
	    		$("button:submit").addClass("log-in").attr("disabled", true);
	    	})
	    	.ajaxStop(function(){
	    		$("button:submit").removeClass("log-in").attr("disabled", false);
	    	});


    	$("form").submit(function(){
    		var self = $(this);
    		$.post(self.attr("action"), self.serialize(), success, "json");
    		return false;

    		function success(data){
			  

    			if(data.status){
    				window.location.href = data.url;
    			} else {
				if(data.info.res==1){
    				self.find("#show_name").html("<img src='/fy/Public/Home/images/en_1.jpg'/>  "+data.info.errer);
    				//刷新验证码
    				//$(".reloadverify").click();
					}else if(data.info.res==2){
					self.find("#show_pw").html("<img src='/fy/Public/Home/images/en_1.jpg'/>  "+data.info.errer);
					}
					else if(data.info.res==3){
					self.find("#show_sj").html("<img src='/fy/Public/Home/images/en_1.jpg'/>  "+data.info.errer);
					}
    			}
    		}
    	});

		/*$(function(){
			var verifyimg = $(".verifyimg").attr("src");
            $(".reloadverify").click(function(){
                if( verifyimg.indexOf('?')>0){
                    $(".verifyimg").attr("src", verifyimg+'&random='+Math.random());
                }else{
                    $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
                }
            });
		});*/

	</script>
 <!-- 用于加载js代码 -->
<!-- 页面footer钩子，一般用于加载插件JS文件和JS代码 -->
<?php echo hook('pageFooter', 'widget');?>
<div class="hidden"><!-- 用于加载统计代码等隐藏元素 -->
	
</div>

	<!-- /底部 -->
</body>
</html>